package com.headStorm.concurrent.manyThread;

import java.nio.ByteBuffer;
import java.util.HashMap;
import java.util.Map;

public class Thread2   {

    public static void main(String[] args) {
        MyThread thread = new MyThread();
        thread.start();
    }
}

class MyThread extends Thread{

    private boolean flag = false;
    @Override
    public void run() {
        while (true){
            System.out.println("haha");
            flag = true;
        }
    }
}
